<h2>View Subject</h2>
<hr/>
<p>The subject details and list of Volumes by this subject are detailed on this page.
</p>
<center>

<!-- Subject information -->
<table>
<tr>
	<th align="right" width=30%>Subject ID:</th>
	<td><?php echo $subject->subject_id; ?></td>
</tr>
<tr>
	<th align="right">Subject Name:</th>
	<td><?php echo $subject->subject_name; ?></td>
</tr>
</table>
</center>

<br />
<h3 class="lefta">List of Volumes by Subject:</h3> <p><?php echo $subject->subject_name; ?></p>
<center>
<!-- Volumes belonging to subject -->
<table>
<tr>
	<th>Accession Number</th>
	<th>Call Number</th>
	<th>Title</th>
	<th>Catalogue Date</th>
</tr>
<?php
foreach ($volumes->result() as $volume)
{
	echo '<tr>';
	
	// Details
	echo '<td>' . anchor('public/public_catalogue/viewVolume/' . $volume->access_id, $volume->access_id) . '</td>';
	echo '<td>' . $volume->call_number . '</td>';
	echo '<td>' . $volume->title . '</td>';
	echo '<td>' . $volume->catalogue_date . '</td>';
	echo '</tr>';
}
?>
</table>

</center>
